import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vant from 'vant';
import {
	Toast
} from 'vant';
import 'vant/lib/index.css';
import VueI18n from 'vue-i18n'

// swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'

// import style
import 'swiper/swiper-bundle.css'

import "./assets/fonts/iconfont.css";
import "./assets/fonts/iconfont.js";
import "./assets/css/css.css";

Vue.use(VueI18n)
Vue.use(ElementUI);
Vue.use(VueAwesomeSwiper)
Vue.use(Vant);
Vue.use(Toast);
Vue.config.productionTip = false


const i18n = new VueI18n({
    locale: 'zh',    // 语言标识
    messages: {
      'zh': require('./common/lang/zh'),   // 中文语言包
      'en': require('./common/lang/en')    // 英文语言包
    }
})

new Vue({
	router,
	i18n,
	render: h => h(App)
}).$mount('#app')
